package com.koi.satoken.service.menu;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.koi.plus.mapper.system.SysMenuMapper;
import com.koi.pojo.system.SysMenu;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ･ᴗ･
 * @description [SysMenuServiceImpl]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class SaMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SaMenuService {

    private final SysMenuMapper menuMapper;

    /**
     * @description [根据角色编码查询菜单权限-Sa-Token权限]
     * @author ･ᴗ･
     */
    @Override
    public List<String> listMenuAuth(String roleCode) {
        return menuMapper.listMenuAuth(roleCode);
    }

}
